﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="jobseeker.ascx.cs" Inherits="UserControls_jobseeker_jobseeker" %>
<script type="text/javascript">
function isValidPhone()
{
 var value=getElementById('txtcontactno'); 
	var retval= false;
	for(i=1; i< Value.length; i++ )  {
		firstChar = Value.charAt(i);
		if ( firstChar >= 0 || firstChar <= 9 ){
			retVal = true;
		} else {
			retVal = false;
		}
	}
	return retVal;
}
function downloadresume(resume)
{
   
   var server = "../resumedownload.aspx?user=" + resume;
   var win  = window.open(server,"resume","",null);
}
</script>

<table style="width: 100%">
    <table style="width: 701px" align="left">
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr id="trAccountDetails" runat="server">
            <td colspan="3" align="left">
                <b>Account Details</b>
            </td>
        </tr>
        <tr id="trUserName" runat="server">
            <td align="right" valign="top">
                <span style="color: red">*</span> User Name
            </td>
            <td align="left" valign="top">
                :
            </td>
           
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtusername" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="validateUsername" runat="server" ControlToValidate="txtusername"
                            ErrorMessage="User Name Required" Display="None"></asp:RequiredFieldValidator>
                           
                    </td>
                    </tr>
                    <tr id="trCheckUserAvail" runat="server">
                        <td align="left" valign="top">
                            &nbsp;
                        </td>
                        <td>
                        </td>
                        <td align="left" valign="top">
                            &nbsp;
                                <asp:Label ID="UserAvailability" runat="server" ForeColor="Red"></asp:Label> 
                                <br />
                                &nbsp;
                                <asp:LinkButton ID="lnkUserAvailability" runat="server" 
                                    CausesValidation="False" onclick="lnkUserAvailability_Click">Check User 
                                Availability</asp:LinkButton>
                            </td>
                       
  
        </tr>
        <tr id="trPassword" runat="server">
            <td align="right" valign="top">
                <span style="color: red">*</span> Password
            </td>
            <td valign="top">
                :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtpassword" runat="server" TextMode="Password" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="validatePassword" runat="server" ControlToValidate="txtpassword"
                    ErrorMessage="Password Not Supplied" Display="Dynamic"></asp:RequiredFieldValidator>
           
                
                <asp:RegularExpressionValidator ID="RegValidatePwd" runat="server" 
                    ControlToValidate="txtpassword" 
                    ErrorMessage="Minimum 7 characters required..." Display="None" 
                    ValidationExpression="\w{7,20}"></asp:RegularExpressionValidator>
               <span style="color:red; font:Ariel;">Min 7 characters required...</span>
            </td>
        </tr>
        <tr id="trConfirmPassword" runat="server">
            <td align="right" valign="top" width="250px">
                <span style="color: red">* </span>Confirm Password
            </td>
            <td valign="top">
                :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtconfirmpassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="validateConfirmPassword" runat="server" ErrorMessage="Retype Password"
                    ControlToValidate="txtconfirmpassword" Display="Dynamic"></asp:RequiredFieldValidator>               
                   
                <asp:CompareValidator ID="CompareValidator1" runat="server" Display="Dynamic" 
                    ControlToCompare="txtpassword" ControlToValidate="txtconfirmpassword"  Operator="Equal" Type="String"
                    ErrorMessage="Password doesn't match..."></asp:CompareValidator>
                  
                   
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="left" style="font-weight: bold; color: #000000">
                Contact Details
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                Your Name
            </td>
            <td valign="top">
                :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtname" runat="server" Width="199px"></asp:TextBox>
                &nbsp;
            </td>
        </tr>
        <tr id="trEmail" runat="server">
            <td align="right" valign="top" >
                <span style="color: red">* </span>Email Address
            </td>
            <td valign="top">
                :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtemail" runat="server" Width="200px"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="validateEmail1" runat="server" ErrorMessage="Email Required"
                    ControlToValidate="txtemail" Display="None"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="ValidateEmail" runat="server" ControlToValidate="txtemail"
                    ErrorMessage="Type Proper Email Address" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    Display="Dynamic"></asp:RegularExpressionValidator>               
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                <span style="color: red">* </span>Country
            </td>
            <td valign="top">
                :
            </td>
            <td align="left" valign="top">        
                <asp:DropDownList ID="drpCountry" runat="server" Height="18px" Width="204px" 
                    OnSelectedIndexChanged="drpCountry_SelectedIndexChanged" DataValueField="76">
                </asp:DropDownList>
                &nbsp;<asp:RequiredFieldValidator ID="validateCountry" runat="server" ErrorMessage="Select A Country"
                    ControlToValidate="drpCountry"></asp:RequiredFieldValidator>
                               
            </td>
            
        </tr>
        <tr>
            <td align="right" valign="top">
                <span style="color: red">* </span>Current Location
            </td>
            <td valign="top">
                :
            </td>
            <td align="left" valign="top">
                <asp:DropDownList ID="drpLocation" runat="server" Height="19px" Width="204px" 
                    OnTextChanged="drpLocation_TextChanged" 
                    onselectedindexchanged="drpLocation_SelectedIndexChanged1">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="ValidateLocation" runat="server" ErrorMessage="Select A location"
                    ControlToValidate="drpLocation"></asp:RequiredFieldValidator>
                <asp:TextBox ID="txtLocationOther" runat="server" Visible="False"></asp:TextBox>
                </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                <span style="color: red">* </span>City
            </td>
            <td valign="top" align="left">
                &nbsp;:
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtcity" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ValidateCity" runat="server" ControlToValidate="txtcity" Display="None"
                    ErrorMessage="City Name Required"></asp:RequiredFieldValidator>
                </td>
                    
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                &nbsp;
            </td>
            <td valign="top">
                &nbsp;
            </td>
            <td align="left" valign="top">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                <span style="color: red">*</span>Contact Numbers
            </td>
            <td valign="top">
                :
            </td>
            <td align="left" valign="top">
                <asp:TextBox ID="txtcontactno" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="ValidateContact" runat="server" ControlToValidate="txtcontactno"
                    ErrorMessage="Contact No. Required" Display="None"></asp:RequiredFieldValidator>                
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="left" style="font-weight: bold; color: #000000">
                Resume Summery
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right">
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td align="right" valign="top">
                <span style="color: red">*</span>Total Experience
            </td>
            <td valign="top">
                :
            </td>
            <td>
                <table>
                    <tr>
                        <td align="right" valign="top">
                            Years
                        </td>
                        <td valign="top">
                            <asp:DropDownList ID="drpyears" runat="server" Height="16px" Width="65px">
                                <asp:ListItem Selected="True">Year</asp:ListItem>
                                <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem>8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                                <asp:ListItem>12</asp:ListItem>
                                <asp:ListItem>13</asp:ListItem>
                                <asp:ListItem>14</asp:ListItem>
                                <asp:ListItem>15</asp:ListItem>
                                <asp:ListItem>16</asp:ListItem>
                                <asp:ListItem>17</asp:ListItem>
                                <asp:ListItem>18</asp:ListItem>
                                <asp:ListItem>19</asp:ListItem>
                                <asp:ListItem>20</asp:ListItem>
                            </asp:DropDownList>
                          
                        </td>
                        <td align="right" valign="top" width="75px">
                            Months
                        </td>
                        <td valign="top" align="left">
                            <asp:DropDownList ID="drpMonths" runat="server" Height="16px" Style="margin-left: 11px"
                                Width="65px">
                                <asp:ListItem Selected="True">Month</asp:ListItem>
                                <asp:ListItem>0</asp:ListItem>
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem>8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                                <asp:ListItem>10</asp:ListItem>
                                <asp:ListItem>11</asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="ValidateMonth" runat="server" ErrorMessage="Select No. Of Months"
                                ControlToValidate="drpmonths" Font-Size="12px"></asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="validateYears" runat="server" ErrorMessage="Select No. Of Years"
                                ControlToValidate="drpYears" Font-Size="12px"></asp:RequiredFieldValidator>                        
                        </td>
                    </tr>
                </table>
                <tr>
                    <td align="right" valign="top">
                        <span style="color: red">*</span>Annual Salary
                    </td>
                    <td valign="top">
                        :
                    </td>
                    <td>
                        <table>
                            <tr>
                                <td align="right" valign="top">
                                    Lakhs
                                </td>
                                <td valign="top">
                                    <asp:DropDownList ID="drpLakhs" runat="server" Height="16px" Width="65px" OnLoad="Page_Load">
                                        <asp:ListItem Selected="True">Lac</asp:ListItem>
                                        <asp:ListItem Value="1">1</asp:ListItem>
                                        <asp:ListItem Value="2">2</asp:ListItem>
                                        <asp:ListItem Value="3">3</asp:ListItem>
                                        <asp:ListItem Value="4">4</asp:ListItem>
                                        <asp:ListItem Value="5">5</asp:ListItem>
                                        <asp:ListItem Value="6">6</asp:ListItem>
                                        <asp:ListItem Value="7">7</asp:ListItem>
                                        <asp:ListItem Value="8">8</asp:ListItem>
                                        <asp:ListItem Value="9">9</asp:ListItem>
                                        <asp:ListItem Value="10">10</asp:ListItem>
                                        <asp:ListItem Value="11">11</asp:ListItem>
                                        <asp:ListItem Value="12">12</asp:ListItem>
                                        <asp:ListItem Value="13">13</asp:ListItem>
                                        <asp:ListItem Value="14">14</asp:ListItem>
                                        <asp:ListItem Value="15">15</asp:ListItem>
                                        <asp:ListItem Value="16">16</asp:ListItem>
                                        <asp:ListItem Value="17">17</asp:ListItem>
                                        <asp:ListItem Value="18">18</asp:ListItem>
                                        <asp:ListItem Value="19">19</asp:ListItem>
                                        <asp:ListItem Value="20">20</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td align="right" valign="top" width="60px">
                                    Thousands&nbsp;&nbsp;&nbsp;
                                </td>
                                <td valign="top">
                                    <asp:DropDownList ID="drpThousands" runat="server" Height="16px" Width="65px" Style="margin-left: 0px">
                                         <asp:ListItem Value="0">0</asp:ListItem>
                                        <asp:ListItem Value="5">5</asp:ListItem>
                                        <asp:ListItem Value="10">10</asp:ListItem>
                                        <asp:ListItem Value="15">15</asp:ListItem>
                                        <asp:ListItem Value="20">20</asp:ListItem>
                                        <asp:ListItem Value="25">25</asp:ListItem>
                                        <asp:ListItem Value="30">30</asp:ListItem>
                                        <asp:ListItem Value="35">35</asp:ListItem>
                                        <asp:ListItem Value="40">40</asp:ListItem>
                                        <asp:ListItem Value="45">45</asp:ListItem>
                                        <asp:ListItem Value="50">50</asp:ListItem>
                                        <asp:ListItem Value="55">55</asp:ListItem>
                                        <asp:ListItem Value="60">60</asp:ListItem>
                                        <asp:ListItem Value="65">65</asp:ListItem>
                                        <asp:ListItem Value="70">70</asp:ListItem>
                                        <asp:ListItem Value="75">75</asp:ListItem>
                                        <asp:ListItem Value="80">80</asp:ListItem>
                                        <asp:ListItem Value="85">85</asp:ListItem>
                                        <asp:ListItem Value="90">90</asp:ListItem>
                                        <asp:ListItem Value="95">95</asp:ListItem>
                                        
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="validateLakhs" runat="server" ErrorMessage="Select Salary Lakhs"
                                        ControlToValidate="drpLakhs" Font-Size="12px"></asp:RequiredFieldValidator>
                                    <asp:RequiredFieldValidator ID="validateThousand" runat="server" ErrorMessage="Select Salary In Thousands"
                                        ControlToValidate="drpThousands" Font-Size="12px"></asp:RequiredFieldValidator>
                                </td>
                    </td>
                </tr>
    </table>
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td valign="top">
            &nbsp;
        </td>
        <td align="left" valign="top">
            <asp:RadioButton ID="rdodollar" runat="server" GroupName="Salary" Text="Dollar" />
            &nbsp;&nbsp;&nbsp;
            <asp:RadioButton ID="rdoRupees" runat="server" GroupName="Salary" Text="Rupees" Checked="True" />
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td valign="top">
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td align="right" valign="top">
            <span style="color: red">*</span>Funtional Area
        </td>
        <td valign="top">
            :
        </td>
        <td align="left" valign="top">
            <asp:DropDownList ID="drpfutionalarea" runat="server" Height="19px" Width="204px"
                OnTextChanged="drpfutionalarea_TextChanged" OnSelectedIndexChanged="drpfutionalarea_SelectedIndexChanged">
                <asp:ListItem>others</asp:ListItem>
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="ValidateFuntionalArea" runat="server" ErrorMessage="Select Funtional Area"
                ControlToValidate="drpfutionalarea"></asp:RequiredFieldValidator>
            <asp:TextBox ID="txtFuntionalAreaOther" runat="server" Visible="False"></asp:TextBox>            
        </td>
    </tr>
    <tr>
        <td align="right" valign="top">
            <span style="color: red">*</span>Industry
        </td>
        <td valign="top">
            :
        </td>
        <td align="left" valign="top">
            <asp:DropDownList ID="drpIndustry" runat="server" Height="19px" Width="204px" OnSelectedIndexChanged="drpIndustry_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="ValidateIndustry" runat="server" ErrorMessage="Select Industry"
                ControlToValidate="drpIndustry"></asp:RequiredFieldValidator>
            <asp:TextBox ID="txtIndustryother" runat="server" Visible="False"></asp:TextBox>            
        </td>
    </tr>
    <tr>
        <td align="right" valign="top">
            <span style="color: red">*</span>Key Skills
        </td>
        <td valign="top">
            :
        </td>
        <td align="left" valign="top">
            <asp:TextBox ID="txtKeyskill" runat="server" Width="200px" TextMode="MultiLine"></asp:TextBox>
            <asp:RequiredFieldValidator ID="ValidateSkills" runat="server" ErrorMessage="Skills Required"
                ControlToValidate="txtKeyskill" Display="None"></asp:RequiredFieldValidator>            
        </td>
    </tr>
    <tr>
        <td align="right" valign="top">
            <span style="color: red">*</span> Resume Headline
        </td>
        <td valign="top">
            :
        </td>
        <td align="left" valign="top">
            <asp:TextBox ID="txtResumeHeadline" runat="server" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="ValidateResume" runat="server" ErrorMessage="Resume HeadLine Required"
                ControlToValidate="txtResumeHeadline" Display="None"></asp:RequiredFieldValidator>
           
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td align="left" style="font-weight: bold; color: #000000" width="250px">
            Educational Qualification
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td align="right" valign="top">
            <span style="color: red">*</span> Higher Qualification
        </td>
        <td valign="top">
            :
        </td>
        <td align="left" valign="top">
            <asp:DropDownList ID="drpHigherQualification" runat="server" Height="19px" Width="200px"
                OnSelectedIndexChanged="drpHigherQualification_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="ValidateQualification" runat="server" ErrorMessage="Select A qualification"
                ControlToValidate="drpHigherQualification"></asp:RequiredFieldValidator>
            <asp:TextBox ID="txtQualiOther" runat="server" Visible="False"></asp:TextBox>            
        </td>
    </tr>
    <tr>
        <td align="left">
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td align="left" style="font-weight: bold; color: #000000">
            Upload Resume
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td align="right" valign="top">
            <span style="color: red">*</span>Attach Resume
        </td>
        <td valign="top">
            :
        </td>
        <td align="left" valign="top">
            <asp:FileUpload ID="FileUpload1" runat="server" /> &nbsp;&nbsp;&nbsp;
         <%--   <% if (!this.IsRegister)
               { %>
               <a href='javascript:downloadresume("<%= Context.User.Identity.Name %>");'> Download Resume </a>
            <%} %>--%>
               <% if (this.IsRegister)
               { %>
               <a href='javascript:downloadresume("<%= strUsername %>");'> Download Resume </a>
            <%} %>
            <asp:RequiredFieldValidator ID="ValidateUploadResume" runat="server" ErrorMessage="Upload Resume"
                ControlToValidate="FileUpload1"></asp:RequiredFieldValidator>
            &nbsp;
            
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td align="left">
            <span id="spanUploadFileError" runat="server" 
                style="font-size: 12px; color: #FF3300;">Upload MS Word file(.doc) only. Max size limit 150 Kb</span>
        </td>
    </tr>
    <tr>
        <td align="center" colspan="3">
            &nbsp;</td>
    </tr>
    <tr>
        <td align="right">
            &nbsp; </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td align="right" colspan="3">
            <asp:CheckBox ID="Chkterms" runat="server" />
            I have read and understood and agree to the&nbsp;<a href="">Terms and Conditions</a> 
            governing the use of z2plus.com. </input><asp:Label ID="errterms" runat="server" Text=""></asp:Label>
        </td>
    </tr>
    
    <tr>
        <td align="right">
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td align="left">
            <asp:ImageButton ID="btnsubmit" runat="server" 
                ImageUrl="~/Images/CompanyRegister.gif" OnClick="btnsubmit_Click" />
        </td>
    </tr>
    <tr>
        <td align="left" colspan="3" valign="top">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                HeaderText="Please correct the following errors...." />
        </td>
    </tr>
    <tr>
        <td align="right">
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    </table>


